<!-- Button trigger modal -->
<button type="button" class="btn btn-primary" data-toggle="modal"  ng-click = "showDialog()">
  {{_btnShowName}}
</button>

<!-- Modal -->
<div class="modal fade" id="{{_id}}" tabindex="-1" role="dialog" aria-labelledby="myModalLabel">
  <div class="modal-dialog" role="document">
    <div class="modal-content">
      <div class="modal-header">
        <button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">&times;</span></button>
        <h4 ng-if = "_title" class="modal-title" id="myModalLabel">{{_title}}</h4>
      </div>
      <div class="modal-body">
        <ng-transclude>
      </div>
      <div class="modal-footer">
        <button type="button" class="btn btn-default" data-dismiss="modal">Close</button>
        <button ng-if = "_btnSave" type="button" class="btn btn-primary" ng-click = "save()">{{_btnSave}}</button>
      </div>
    </div>
  </div>
</div>